//
//  ShareMangaer.h
//  CoolMove
//
//  Created by CA on 14-12-4.
//  Copyright (c) 2014年 CA. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <ShareSDK/ShareSDK.h>

typedef void(^ShareResultBlock)(BOOL success);
typedef void(^ShareFinishBlock)(BOOL success,NSString *info);

@import UIKit;

@interface ShareMangaer : NSObject

- (void)shareInView:(UIView *)view
        withContent:(NSString *)content
      imageFromView:(UIView *)imageInView
          shareType:(SSDKPlatformType)type
   shareResultBlock:(ShareResultBlock)block;

- (void)shareInView:(UIView *)view
        withContent:(NSString *)content
              image:(UIImage *)image
          shareType:(SSDKPlatformType)type
   shareResultBlock:(ShareFinishBlock)block;

- (void)shareInView:(UIView *)view
        withContent:(NSString *)content
          withTitle:(NSString *)title
            withUrl:(NSString *)url
          shareType:(SSDKPlatformType)type
   shareResultBlock:(ShareResultBlock)block;

//- (void)shareFaceBooKInview:(UIView *)view withContent:

+ (instancetype)sharedInstance;

@end
